from typing import Optional
from pydantic import BaseModel


class GpsModel(BaseModel):
    vehicle_no: Optional[str] = None  # 车牌号
    start_time: Optional[str] = None  # 创建时间
    end_time: Optional[str] = None  # 更新时间
    def __str__(self):
        return f"vehicle_no:{self.vehicle_no},start_time:{self.start_time},end_time:{self.end_time}"
